feat(vehicle): evidence write bridge — runtime learning write-path (P2-6)#41
Merged
Merged
Conversation
…2-6) Evidence Store'a runtime yazıcı yoktu (Integration Service yalnız list() okuyordu) → learning rozetleri/Expert özeti/diagnostic learning context boş kalıyordu. Bu köprü eksik write-path'i cold-path'te bağlar: - VKB güncellenince (discovery gözlemi + VID kimlik değişimi abonelikleri) debounce'lu tetiklenir → vehicleLearningEngine.computeEvidence() → Evidence Store.save() (idempotent reproject: createdAt korunur, observationCount şişmez, vehicleCount distinct). - 3Hz OBD hot-path'e girmez; BALANCED/HIGH 8sn, BASIC_JS(low) 20sn debounce. - start() idempotent (duplicate abonelik yok); stop/dispose zero-leak; dispose kapanışta final flush; fail-soft (köprü hatası OBD/Discovery akışına sızmaz); bounded (store 512 LRU). - SystemBoot Wave-3: VKB'den SONRA başlar, _reg ile cleanup. Formüller (confidence/decay/pattern-promotion) · Discovery capture/queue · Fingerprint · Auto Learning · VKB · Manufacturer Intelligence · Diagnostic safety/severity/driveSafe · PID/DID registry DEĞİŞMEZ. Cloud/SQL/LLM/Native YOK. Test: 12 (trigger+write, duplicate-yok, vehicleCount-şişmez, observationCount-doğru, debounce-coalesce, low-seyrek, fail-soft x4, lifecycle idempotent/stop/dispose-flush). Ledger #26 🔴 (cihazda test bekliyor). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPnPns3eJrjWv7eBz3E6hV
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| } | ||
|
|
||
| private _debounceMs(): number { | ||
| let t: DeviceTier = 'high'; |
…f import) Evidence Write Bridge, vehicleLearningEvidenceStore'u ilk kez SystemBoot import grafiğine sokuyor; store safeStorage.safeRemoveRaw kullanıyor. cleanup.services / cleanup.remote testlerinin safeStorage mock'u bu export'u vermiyordu → suite collection düşüyordu. Eksik export mock'a eklendi (davranış değişmez). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPnPns3eJrjWv7eBz3E6hV
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amaç
P2-1→P2-5 öğrenme katmanları kuruldu ama Evidence Store'a runtime yazıcı yoktu (Integration Service yalnız
list()okuyordu) → learning rozetleri / Expert özeti / diagnostic learning context BOŞ kalıyordu. Bu PR eksik write-path'i güvenli şekilde bağlar.Data Flow
Yeni dosyalar
src/platform/vehicleLearningEvidenceBridge.ts— köprü/orkestrasyon katmanısrc/__tests__/vehicleLearningEvidenceBridge.test.ts— 12 testDeğişen dosyalar
src/platform/system/SystemBoot.ts— VKB'den SONRA cold-path wiring (_regcleanup)docs/DEVICE_VALIDATION_LEDGER.md— feat(vehicle): Otomatik Araç Parmak İzi Üreticisi (PR-26) #26 🔴 kaydıTrigger + Throttle + Tier
discoveryCaptureService.subscribe) + VID kimlik değişimi (useVidStore.subscribe) — 3Hz OBD hot-path'e GİRMEZ.8sn, BASIC_JS(low)20sn(seyrek).save(): createdAt korunur, observationCount ŞİŞMEZ, vehicleCount distinct kalır → tekrar yazımda büyümez.start()idempotent (duplicate abonelik yok) ·stop()/dispose()zero-leak ·dispose()kapanışta final flush · fail-soft (köprü hatası OBD/Discovery akışına sızmaz) · bounded (store 512 LRU).Değişmeyen (KESİN SINIR)
Confidence/decay/pattern-promotion formülleri · Discovery capture/queue · Fingerprint · Auto Learning · VKB · Manufacturer Intelligence · Diagnostic safety/severity/driveSafe · PID/DID registry. Cloud/SQL/LLM/Native YOK. PR #11 / PR #20'ye dokunulmadı.
Doğrulama
npx vitest run→ 12/12 geçtinpx tsc -b→ temizRisk
Düşük-Orta — runtime write-path açar; bounded store + throttled writes + cold-path + fail-soft + zero-leak ile sınırlandı. 🔴 Cihazda test edilmedi (Ledger #26 kabul ölçütleriyle).
🤖 Generated with Claude Code